﻿<include file="top" />
	<table width="100%">
	<tr class="h"><td>ID</td><td>名称</td><td>场景值</td><td>创建日期</td><td>有效期</td><td>操作</td></tr>
<loop name="QRCodes">
	<tr class="l"><td>{$QRCodes.Id}</td><td>{$QRCodes.Name:F.encodeHTML}</td><td>{$QRCodes.SenseId}</td><td>{$QRCodes.CreateAt:F.untimespan}</td>
	<td><eq name="QRCodes.Expired" value="0">永久</else><lt name="QRCodes.ExpiredDate" value="Now" type="assign"><span class="red">已过期</span></else>{$QRCodes.Expired}秒</lt></eq>
	</td>
	<td><a href="?m=Qrcode&a=DeleteQrcode&Id={$QRCodes.Id}" onclick="return window.confirm('确定要删除本记录吗？');">删除</a>&nbsp;|&nbsp;
	<a href="https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket={$QRCodes.Ticket:F.encode}" target="_blank">查看</a>
	</td>
	</tr>
</loop>
	<tr class="l"><td colspan="6"><page for="QRCodes" /></td></tr>
</table>
<form action="?m=Qrcode&a=getqrcode" method="post">
<input type="hidden" name="Id" value="{$System.Id}" />
<table width="100%">
<tr class="h"><td colspan="2">获取二维码</td></tr>
<tr class="l"><td width="80">名称/用途：</td><td><input type="text" name="Name" value="" /> </td></tr>
<tr class="l"><td width="80">场景值：</td><td><input type="text" name="SenseId" value="" /> *临时二维码为32位非0整数，永久二维码最大为100000</td></tr>
<tr class="l"><td>过期时间：</td><td><input type="text" name="Expired" value="1800" /> 秒，最大为1800秒</td></tr>
<tr class="l"><td colspan="2"><input type="submit" name="act" value="生成临时二维码" />
<input type="submit" name="act" value="生成永久二维码" /></td></tr>
</table>
</form>
<include file="foot" />